export default function adapter(props) {
  const onlineDevelopmentMode = process.env.VUE_APP_ONLINE_DEVELOPMENT_MODE === "true" || process.env.REACT_APP_ONLINE_DEVELOPMENT_MODE === "true"
  if (process.env.NODE_ENV === "production" || (onlineDevelopmentMode && !window.online_development_islocal)) {
    /**
     *@example
     * props.type = (props.type === "designConfiguration" ? "designConfiguration" : "main")
     *   props.changeConfiguration && (props.changeCustomConfig = props.changeConfiguration)
     *   if (props.type === "designConfiguration") {
     *     props.customConfig = JSON.parse(props.configuration)
     *   } else {
     *     props.customConfig = props.configuration
     *   }
     *
     */
    /**
     * 封装smardaten触发事件的方法
     * @param {String} eventName 事件名
     * @param {Object} payload 事件传参
     * @example
     * triggerEvent("click",{value:"123"})
     *
     */
    /*props.triggerEvent = function (eventName, payload = {}) {
     this.vueProps.componentId && window.eventCenter?.triggerEvent(
     this.vueProps.componentId,
     eventName,
     //payload需为一个object
     payload
     )
     }*/
    // return props
  }
  return props
}
